package com.wangijun.yuan.core.model.em;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;


/**
 * 操作类型
 *
 * @author mldong
 */
@Getter
public enum NoticeTypeEnum  {

    pushArt(0, "发布了文章"),
    editArt(1, "更新了文章"),
    likedComment(2, "点赞了你的评论"),
    replayComment(3, "回复了你"),
    likedArt(4, "点赞了你的文章"),
    favArt(5, "收藏了你的文章"),
    followUser(6, "关注了你"),
    ;

    NoticeTypeEnum(int value, String name) {
        this.code = value;
        this.message = name;
    }

    @EnumValue
    @JsonValue
    private final Integer code;
    private final String message;

}